/*
 *
 * 中间件和后端的协议
 *
 *
 */



/*============TCP PORT==========*/
#define MSG_TCP_PORT_SEND_MSG	 	100000 	//消息转发   		{linefd, payload}
#define MSG_TCP_PORT_NEW_CLIENT 	100001 	//新链接       		{sockfd, ip}
#define MSG_TCP_PORT_ACCEPT_CLIENT 	100002 	//接受     			{sockfd}
#define MSG_TCP_PORT_REJECT_CLIENT 	100003 	//拒绝      		{sockfd, reason}
#define MSG_TCP_PORT_NEW_LINE 	 	100004	//line已建立          	{linefd, ip}
#define MSG_TCP_PORT_BOARDCAST	 	100005	//消息广播      		{linefd*,payload}
#define MSG_TCP_PORT_CLOSE_LINE 	100006	//line已关闭        	{linefd, ip}




